dynTable

Class: com.microstrategy.web.app.taglibs.DynTableTag

Usage:

This class will represent a table which cells (defined using the {@link DynTableCellTag} custom tag) will be added dynamically based on certain conditions specified by the user.
Each one of the cells defined for this table will analyze the condition specified on its attribute and decide based on that whether it should be displayed or not.
For this example, there are three possible cells to be displayed. The table specifies it will have two columns; therefore, if all three conditions are true, then two rows will be rendered for showing all three cells (the last cell on the second row will be empty). If the condition for profile-reports fails, then the resulting table will have only one row, showing the first and the last cells only.
 <web:dynTable cols="2">
   <web:dynTableCell feature="public-reports">
     This content will be displayed as a the cell of the table if the feature public-reports is granted.
   </web:dynTableCell>
   <web:dynTableCell feature="profile-reports">
     This content will be displayed as a cell of the table if the feature profile-reports is granted.
   </web:dynTableCell>
   <web:dynTableCell feature="template-reports">
     This content will be displayed as a cell of the table if the feature template-reports is granted.
   </web:dynTableCell>
 </web:dynTable>
 


Name Required? Description
cols true Indicates the number of columns the table will be generated with while considering each one of the child DynTableCellTag tags.
Usage:
Each cell to be displayed by this table will count as a column being used. Those cells that do not get rendered will not be part of this counter. Each time the number of columns rendered reaches the limit specified on this attribute, a new <TR> HTML tag will be generated to host a new set of cells.